package com.example.Annocation.factoryBean;

import com.example.Annocation.commons.Color;
import org.springframework.beans.factory.FactoryBean;

/**
 * @Description TODO
 * @Date 2024/5/15 0:46
 * @Created by houjunfeng
 */
public class MyFactoryBean implements FactoryBean<Color> {
    @Override
    public  Color getObject()throws Exception{
         return new Color();
    }
    @Override
    public  Class<?> getObjectType(){
        return Color.class;
    }
    @Override
    //是否是单例bean
    public  boolean isSingleton(){
        return  true;
    }
}
